
	$(function(){
		
	

		//展开收起
		/*var Oshouqi = document.getElementsByClassName("shouqi")[0];
		var Oword = document.getElementsByClassName("word")[0];
		Oshouqi.onclick = function() {
			if(Oshouqi.innerHTML == "展开全文") {
				Oword.style.height = "100%"
				Oshouqi.innerHTML = "收起"
			} else {
				Oword.style.height = 300 + "px";
				Oshouqi.innerHTML = "展开全文"
			}
		}*/
		
		$(".shouqi").click(function(){
			if($(".shouqi").html()=="展开全文"){
				$(".word").animate({
					"height":"100%"
				},1000).find(".shouqi").html("收起")
			}else{
				$(".word").animate({
					"height":"300px"
				},1000).find(".shouqi").html("展开全文")
			}
		})
		/*轮播*/

		/*var perivous = document.getElementById("perivous");
		var next = document.getElementById("next");
		var Oul = document.getElementsByClassName("rel-ul")[0];

		var num = 0;
		next.onclick = function() {
			num++;
			console.log(num)
			if(num >= 3) {
				num = 2;
				next.disabled = true;
			} else {
				move(Oul, -360 * num, 10)
			}

		}
		perivous.onclick = function() {
				num--;
				if(num < 0) {
					num = 0;
					perivous.disabled = true;
				} else {
					move(Oul, -360 * num, 10)
				}
			}*/
	;(function(){
		var num = 0 ;	
		var width = $(".related").outerWidth();
		$("#next").click(function(){
			$("#perivous").removeClass("none")
			num++;
			if(num>=5){
				num = 4;
				$(this).attr("disabled","true").addClass("none")
			}else{	
				$(".rel-ul").stop(false,true).animate({
					left:-width*num+"px"
				},500)
			}
		});
		$("#perivous").click(function(){
			$("#next").removeClass("none")
			num--;
			if(num<0){
				num=0;
				$(this).attr("disabled","true").addClass("none");
			}else{
				$(".rel-ul").stop(false,true).animate({
					left:-width*num+"px"
				},500)
			}
		});	
		
		
		
	}())
		
			/*浮动右边信息*/
		$(".dianzan").mouseenter(function(){
			$(".dianzan-1").attr("src","images/main-img/icon_17.png")
		}).mouseleave(function(){
			$(".dianzan-1").attr("src","images/main-img/icon_12.png")
		});
		$(".shoucang").mouseenter(function(){
			$(".shoucang-1").attr("src","images/main-img/icon_15.png")
		}).mouseleave(function(){
			$(".shoucang-1").attr("src","images/main-img/icon_13.png")
		});
		$(".dashang").mouseenter(function(){
			$(".dashang-1").attr("src","images/main-img/icon_16.png");
			$(".dashang-2").stop(false,true).slideDown(1000)
			
		}).mouseleave(function(){
			$(".dashang-2").stop(false,true).slideUp(1000)
			$(".dashang-1").attr("src","images/main-img/icon_14.png")
		});
		

	

	
})